package org.megha.blog.example.part6;

/** 
 * A 3-Dimensional object, which has a surface area, volume and
 * a surface area to volume ratio. This abstract class has a
 * concrete surface-area to volume ratio method implementation
 * which depends on the object specific surface-area and volume
 * definitions.
 */
public abstract class ThreeDObject {

	public abstract double getSurfaceArea();
	public abstract double getVolume();

	public double getSurfaceToVolumeRatio() {
		return getSurfaceArea()/getVolume();
	}
}
